package com.xyz.study.design_mode.p_mediator.mode;

/**
 * 角色：Colleague 同事
 *
 * @author XYZ
 * @version 1.0
 * @since 2023/1/11
 */
public abstract class Colleague {

    protected Mediator mediator;

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract String name();

    public abstract void colleagueChanged();

    abstract void controlColleague();
}
